package com.ruoyi.temu.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * spu对象 temu_spu
 * 
 * @author ruoyi
 * @date 2023-09-03
 */
public class TemuSpu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** SPU_ID */
    private Long spuId;

    /** sku_id */
    @Excel(name = "sku_id")
    private Long skcId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productCreatedAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productUpdatedAt;

    /** 名称 */
    @Excel(name = "名称")
    private String spuName;

    /** 图片列表 */
    @Excel(name = "图片列表")
    private String carouselImageUrlList;

    /** 商家id */
    @Excel(name = "商家id")
    private Long supplierId;

    /** 购买地址 */
    @Excel(name = "购买地址")
    private String buyUrl;

    /** 生命周期状态 */
    @Excel(name = "生命周期状态")
    private Long selectStatus;

    /** sku信息 */
    private List<TemuSku> temuSkuList;

    public void setSpuId(Long spuId) 
    {
        this.spuId = spuId;
    }

    public Long getSpuId() 
    {
        return spuId;
    }
    public void setSkcId(Long skcId) 
    {
        this.skcId = skcId;
    }

    public Long getSkcId() 
    {
        return skcId;
    }
    public void setProductCreatedAt(Date productCreatedAt) 
    {
        this.productCreatedAt = productCreatedAt;
    }

    public Date getProductCreatedAt() 
    {
        return productCreatedAt;
    }
    public void setProductUpdatedAt(Date productUpdatedAt) 
    {
        this.productUpdatedAt = productUpdatedAt;
    }

    public Date getProductUpdatedAt() 
    {
        return productUpdatedAt;
    }
    public void setSpuName(String spuName) 
    {
        this.spuName = spuName;
    }

    public String getSpuName() 
    {
        return spuName;
    }
    public void setCarouselImageUrlList(String carouselImageUrlList) 
    {
        this.carouselImageUrlList = carouselImageUrlList;
    }

    public String getCarouselImageUrlList() 
    {
        return carouselImageUrlList;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setBuyUrl(String buyUrl) 
    {
        this.buyUrl = buyUrl;
    }

    public String getBuyUrl() 
    {
        return buyUrl;
    }
    public void setSelectStatus(Long selectStatus) 
    {
        this.selectStatus = selectStatus;
    }

    public Long getSelectStatus() 
    {
        return selectStatus;
    }

    public List<TemuSku> getTemuSkuList()
    {
        return temuSkuList;
    }

    public void setTemuSkuList(List<TemuSku> temuSkuList)
    {
        this.temuSkuList = temuSkuList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spuId", getSpuId())
            .append("skcId", getSkcId())
            .append("productCreatedAt", getProductCreatedAt())
            .append("productUpdatedAt", getProductUpdatedAt())
            .append("spuName", getSpuName())
            .append("carouselImageUrlList", getCarouselImageUrlList())
            .append("supplierId", getSupplierId())
            .append("buyUrl", getBuyUrl())
            .append("selectStatus", getSelectStatus())
            .append("temuSkuList", getTemuSkuList())
            .toString();
    }
}
